/**
 * By Alpha
 * Author: alixez <alixe.z@foxmail.com>
 * Date: 2017/11/2
 */

const nodeEnv = process.env.NODE_ENV;

export const envelopment = (nodeEnv === 'development' ? 'development' : 'production');

export default {
  production: {
    name: 'UNITE | 游离体',
    prefix: 'unite_',
    footerText: 'student unite club  © 2017 itspeed',
    logo: '/logo.png',
    defaultAvatar: '/default_avatar.png',
    iconFontCSS: '/iconfont.css',
    iconFontJS: '/iconfont.js',
    CORs: [],
    openPages: [
      '/login',
      '/register',
      '/forgetPassword',
      {
        path: '/organization/alert',
        needAuth: true,
      },
      
      {
        path: '/createorganization',
        needAuth: true,
      },
      
      {
        path: '/joinorganization',
        needAuth: true,
      },
    ],
  },
  development: {
    name: 'UNITE',
    prefix: 'unite_',
    footerText: 'student unite club  © 2017 itspeed',
    logo: '/logo.png',
    iconFontCSS: '/iconfont.css',
    iconFontJS: '/iconfont.js',
    defaultAvatar: '/default_avatar.png',
    CORs: [],
    openPages: [
      '/login',
      '/register',
      '/forgetPassword',
      {
        path: '/organization/alert',
        needAuth: true,
      },
      
      {
        path: '/createorganization',
        needAuth: true,
      },
      
      {
        path: '/joinorganization',
        needAuth: true,
      },
    ],
  },
}[envelopment];
